package com.un.ebs.contract.domain;

import java.util.Date;
import com.un.ebs.contract.enums.ContractTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (SaleContractExt)表实体类
 *
 * @author makejava
 * @since 2021-02-25 16:53:35
 */
@Data
@Component
@TableName("v_sale_contract_ext")
@SuppressWarnings("serial")
public class SaleContractExt extends Model<SaleContractExt> {

                
    @DbField(name = "contract_id",  length = 40 , precision = 0)
    private String contractId;
                
    @DbField(name = "business_ent_id",  length = 40 , precision = 0)
    private String businessEntId;
                
    @DbField(name = "business_ent_name",  length = 100 , precision = 0)
    private String businessEntName;
                
    @DbField(name = "is_temp_contract_send",  length = -1 , precision = 0)
    private Boolean isTempContractSend;
                
    @DbField(name = "personnel_id",  length = 40 , precision = 0)
    private String personnelId;
                
    @DbField(name = "personnel_name",  length = 50 , precision = 0)
    private String personnelName;
                
    @DbField(name = "submit_time",  length = -1 , precision = 0)
    private Date submitTime;
                
    @DbField(name = "contract_code",  length = 50 , precision = 0)
    private String contractCode;
                
    @DbField(name = "business_contract_code",  length = 50 , precision = 0)
    private String businessContractCode;
                
    @DbField(name = "type",  length = -1 , precision = 0)
    private ContractTypeEnum type;
                
    @DbField(name = "is_temp",  length = -1 , precision = 0)
    private Boolean isTemp;
                
    @DbField(name = "remark",  length = 1000 , precision = 0)
    private String remark;
                
    @DbField(name = "last_customer_name",  length = 100 , precision = 0)
    private String lastCustomerName;
                
    @DbField(name = "sku_id",  length = 40 , precision = 0)
    private String skuId;
                
    @DbField(name = "sku_code",  length = 100 , precision = 0)
    private String skuCode;
                
    @DbField(name = "sku_name",  length = 100 , precision = 0)
    private String skuName;
                
    @DbField(name = "class_name",  length = 40 , precision = 0)
    private String className;
                
    @DbField(name = "purchase_type",  length = -1 , precision = 0)
    private Integer purchaseType;
                
    @DbField(name = "contract_qty",  length = 38 , precision = 4)
    private Double contractQty;
                
    @DbField(name = "price",  length = 18 , precision = 4)
    private Double price;
                
    @DbField(name = "contract_money",  length = 38 , precision = 6)
    private Double contractMoney;
                
    @DbField(name = "order_qty",  length = 38 , precision = 4)
    private Double orderQty;
                
    @DbField(name = "out_qty",  length = 38 , precision = 4)
    private Double outQty;
                
    @DbField(name = "temporary_out_qty",  length = 38 , precision = 4)
    private Double temporaryOutQty;
                
    @DbField(name = "formal_out_qty",  length = 38 , precision = 4)
    private Double formalOutQty;
                
    @DbField(name = "sale_deliver_qty",  length = 38 , precision = 4)
    private Double saleDeliverQty;
                
    @DbField(name = "temporary_deliver_qty",  length = 38 , precision = 4)
    private Double temporaryDeliverQty;
                
    @DbField(name = "formal_deliver_qty",  length = 38 , precision = 4)
    private Double formalDeliverQty;
                
    @DbField(name = "inventory_qty",  length = 38 , precision = 6)
    private Double inventoryQty;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;
                
    @DbField(name = "out_money",  length = 38 , precision = 6)
    private Double outMoney;
                
    @DbField(name = "sale_deliver_money",  length = 38 , precision = 6)
    private Double saleDeliverMoney;
                
    @DbField(name = "can_out_qty",  length = 38 , precision = 4)
    private Double canOutQty;
                
    @DbField(name = "can_sale_deliver_qty",  length = 38 , precision = 4)
    private Double canSaleDeliverQty;


}